package com.yc.videocache.sourcestorage;

import com.yc.videocache.SourceInfo;

/**
 * Storage for {@link SourceInfo}.
 */

/**
 * SourceInfoStorage
 *
 * @since 2021-05-10
 */
public interface SourceInfoStorage {
    /**
     * get
     *
     * @param url
     * @return SourceInfo
     */
    SourceInfo get(String url);

    /**
     * put
     *
     * @param url
     * @param sourceInfo
     */
    void put(String url, SourceInfo sourceInfo);

    /**
     * release
     */
    void release();
}
